import numpy as np

a = np.arange(27).reshape(3,3,3)
print(a)
print("-----------------------------------------------------------------------------------------------------------")
#print(a[0, 0, 0])
#print(a[:, 0, 0]) print(a[:, 0,-3])
#print(a[0,:, :]) 或 print(a[0,...])
#print(a[0, 1])
#print(a[:,1:3,:])
#z翻转
#print(a[:,:,::-1])
#x翻转
print(a[::-1,:,:])
#步长跳跃切片
#print(a[:,:,::2])